import request from '@/utils/request'

// 查询户型信息列表
export function listShape(query) {
  return request({
    url: '/archive/shape/list',
    method: 'get',
    params: query
  })
}

// 查询户型信息详细
export function getShape(id) {
  return request({
    url: '/archive/shape/' + id,
    method: 'get'
  })
}

// 新增户型信息
export function addShape(data) {
  return request({
    url: '/archive/shape',
    method: 'post',
    data: data
  })
}

// 修改户型信息
export function updateShape(data) {
  return request({
    url: '/archive/shape',
    method: 'put',
    data: data
  })
}

// 删除户型信息
export function delShape(id) {
  return request({
    url: '/archive/shape/' + id,
    method: 'delete'
  })
}
